package com.ktgj.customer.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktgj.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

public class OrderPaymentRecord2Dto {

    private static final long serialVersionUID = 1L;

    /** 支付记录表主键 */
    private Long payId;

    /** 支付总金额 */
    @Excel(name = "支付总金额")
    private BigDecimal payAmount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 交易流水号 */
    @Excel(name = "交易流水号")
    private String tradeNo;

    /** 支付交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tradeTime;

    /** 支付状态：0未支付，1已支付 */
    @Excel(name = "支付状态：0未支付，1已支付")
    private String payStatus;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payMethod;

    public String getPayMethod()
    {
        return payMethod;
    }

    private int orderId;

    public void setPayMethod(String payMethod)
    {
        this.payMethod = payMethod;
    }

    public int getOrderId()
    {
        return orderId;
    }

    public void setOrderId(int orderId)
    {
        this.orderId = orderId;
    }

    public void setPayId(Long payId)
    {
        this.payId = payId;
    }

    public Long getPayId()
    {
        return payId;
    }
    public void setPayAmount(BigDecimal payAmount)
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount()
    {
        return payAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setTradeNo(String tradeNo)
    {
        this.tradeNo = tradeNo;
    }

    public String getTradeNo()
    {
        return tradeNo;
    }
    public void setTradeTime(Date tradeTime)
    {
        this.tradeTime = tradeTime;
    }

    public Date getTradeTime()
    {
        return tradeTime;
    }
    public void setPayStatus(String payStatus)
    {
        this.payStatus = payStatus;
    }

    public String getPayStatus()
    {
        return payStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("payId", getPayId())
                .append("payAmount", getPayAmount())
                .append("createTime", getCreateTime())
                .append("tradeNo", getTradeNo())
                .append("tradeTime", getTradeTime())
                .append("payStatus", getPayStatus())
                .append("payMethod", getPayMethod())
                .toString();
    }
}
